package com.hebeu.gfh.exception;

/**
 *
 * @description 定义一个自己的异常
 * @author Liujianli
 * @date 2023-02-27
 */
public class AppException extends RuntimeException {

    private int code ;
    private String msg ;


    public AppException(AppExceptionCodeMsg appExceptionCodeMsg){
        super();
        this.code=appExceptionCodeMsg.getCode();
        this.msg=appExceptionCodeMsg.getMsg();

    }

    public AppException(int code ,String msg){
        super();
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
